package com.shujia.userController;

import com.shujia.uerService.weiboService;
import com.shujia.user.Weibo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeiboController {
    @GetMapping("/weibo")
    public Weibo hotSearch(int id){
        weiboService weiboService = new weiboService();
        Weibo weibo = weiboService.hostSearch(id);
        return weibo;
    }

}
